﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <SolidColorBrush x:Key="UkFlagBackgroundBrush" Color="#00247D"/>
    <Pen x:Key="UkFlagDiagonalWhiteStripePen" Brush="White" Thickness="150"/>
    <Pen x:Key="UkFlagDiagonalRedStripePen" Brush="#CF142B" Thickness="50"/>
    <Pen x:Key="UkFlagWhiteCrossPen" Brush="White" Thickness="250"/>
    <Pen x:Key="UkFlagRedCrossPen" Brush="#CF142B" Thickness="150"/>
    <DrawingImage x:Key="FlagOfUk">
        <DrawingImage.Drawing>
            <DrawingGroup>
                <DrawingGroup.ClipGeometry>
                    <RectangleGeometry Rect="0, 0, 900, 600"/>
                </DrawingGroup.ClipGeometry>
                <GeometryDrawing Brush="{StaticResource UkFlagBackgroundBrush}">
                    <GeometryDrawing.Geometry>
                        <RectangleGeometry Rect="0, 0, 900, 600"/>
                    </GeometryDrawing.Geometry>
                </GeometryDrawing>
                <GeometryDrawing Pen="{StaticResource UkFlagDiagonalWhiteStripePen}">
                    <GeometryDrawing.Geometry>
                        <LineGeometry StartPoint="0, 0" EndPoint="900, 600"/>
                    </GeometryDrawing.Geometry>
                </GeometryDrawing>
                <GeometryDrawing Pen="{StaticResource UkFlagDiagonalWhiteStripePen}">
                    <GeometryDrawing.Geometry>
                        <LineGeometry StartPoint="900, 0" EndPoint="0, 600"/>
                    </GeometryDrawing.Geometry>
                </GeometryDrawing>
                <GeometryDrawing Pen="{StaticResource UkFlagDiagonalRedStripePen}">
                    <GeometryDrawing.Geometry>
                        <LineGeometry StartPoint="-50, 0" EndPoint="400, 300"/>
                    </GeometryDrawing.Geometry>
                </GeometryDrawing>
                <GeometryDrawing Pen="{StaticResource UkFlagDiagonalRedStripePen}">
                    <GeometryDrawing.Geometry>
                        <LineGeometry StartPoint="950, 600" EndPoint="500, 300"/>
                    </GeometryDrawing.Geometry>
                </GeometryDrawing>
                <GeometryDrawing Pen="{StaticResource UkFlagDiagonalRedStripePen}">
                    <GeometryDrawing.Geometry>
                        <LineGeometry StartPoint="900, -30" EndPoint="450, 270"/>
                    </GeometryDrawing.Geometry>
                </GeometryDrawing>
                <GeometryDrawing Pen="{StaticResource UkFlagDiagonalRedStripePen}">
                    <GeometryDrawing.Geometry>
                        <LineGeometry StartPoint="0, 630" EndPoint="450, 330"/>
                    </GeometryDrawing.Geometry>
                </GeometryDrawing>
                <GeometryDrawing Pen="{StaticResource UkFlagWhiteCrossPen}">
                    <GeometryDrawing.Geometry>
                        <LineGeometry StartPoint="0, 300" EndPoint="900, 300"/>
                    </GeometryDrawing.Geometry>
                </GeometryDrawing>
                <GeometryDrawing Pen="{StaticResource UkFlagWhiteCrossPen}">
                    <GeometryDrawing.Geometry>
                        <LineGeometry StartPoint="450, 0" EndPoint="450, 600"/>
                    </GeometryDrawing.Geometry>
                </GeometryDrawing>
                <GeometryDrawing Pen="{StaticResource UkFlagRedCrossPen}">
                    <GeometryDrawing.Geometry>
                        <LineGeometry StartPoint="0, 300" EndPoint="900, 300"/>
                    </GeometryDrawing.Geometry>
                </GeometryDrawing>
                <GeometryDrawing Pen="{StaticResource UkFlagRedCrossPen}">
                    <GeometryDrawing.Geometry>
                        <LineGeometry StartPoint="450, 0" EndPoint="450, 600"/>
                    </GeometryDrawing.Geometry>
                </GeometryDrawing>
            </DrawingGroup>
        </DrawingImage.Drawing>
    </DrawingImage>
</ResourceDictionary>